{extend name="common/block" /}

{block name="content"}

<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <div class="card-body">
                <form action="" method="post" class="row">
                    <div class="form-group col-md-12">
                        <label for="nickname">昵称</label>
                        <input type="text" class="form-control" id="nickname" value="{$userinfo.nickname}" name="nickname">
                    </div>
                    <div class="form-group col-md-12">
                        <label for="username">用户名</label>
                        <input type="text" class="form-control" id="username" value="{$userinfo.username}" readonly>
                    </div>
                    <div class="form-group col-md-12">
                        <label for="mobile">手机号码</label>
                        <input type="text" class="form-control" id="mobile" value="{$userinfo.mobile}" {if !empty($userinfo.mobile)}readonly{else/}name="mobile"{/if}>
                    </div>
                    <div class="form-group col-md-12">
                        <label for="email">邮箱</label>
                        <input type="text" class="form-control" id="email" value="{$userinfo.email}" {if !empty($userinfo.email)}readonly{else/}name="email"{/if}>
                    </div>
                    <div class="form-group col-md-12">
                        <label for="money">余额</label>
                        <input type="text" class="form-control" id="money" value="{$userinfo.money}" readonly>
                    </div>

                    <div class="form-group col-md-12">
                        <label for="money">状态</label>
                        <input type="text" class="form-control" id="money" value="{$userinfo.status}" readonly>
                    </div>
                    <div class="form-group col-md-12">
                        <label for="register">注册时间</label>
                        <input type="text" class="form-control" id="register" value="{$userinfo.create_time|date="Y-m-d H:i:s"}" readonly>
                    </div>
                    <div class="form-group col-md-12">
                        <label for="passwd">密码</label>
                        <input type="text" class="form-control" id="passwd" value="" name="password">
                    </div>

                    <div class="col-xs-12">
                        <button class="btn btn-primary" type="submit">提交更改</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}